package com.moduleSys;

import com.moduleSys.config.RedisConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Created by czw on 2017/6/30 0030.
 */
@SpringBootApplication
@EnableTransactionManagement
//@MapperScan("com.moduleSys.mapper")//配置mybatis包扫描
public class Application extends SpringBootServletInitializer {


    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(Application.class);
    }
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(Application.class);
      //  springApplication.addListeners(new ApplicationStartedEventListener());
        springApplication.run(args);

    }

}
